import request from '@/utils/http'

// 获取商品详情
export function getGoodDeatails(id) {
  return request({
    url: `/goods?id=${id}`
  })
}

// 获取与商品相关的推荐榜单
export const fetchHotGoodsAPI = ({ id, type, limit = 3 }) => {
  return request({
    url: '/goods/hot',
    params: {
      id,
      type,
      limit
    }
  })
}
